Welcome Guest | Sign in | Register

Home > C Programming > C Basics > Questions and Answers

01. Which one Keyword used to calling function back again and again?
A. switch B. goto
C. go back D. return

Answer and Explanation

Answer: return

Explanation:
There is no explanation...

Report Errors

Name:

Loading...

VView Answer | RReport | DDiscuss in Forum
02. Which one is the correct order of evaluation for the below expression? z = x + y * z / 4 % 2 – 1
A. / % + – = B. = * / % + -
C. / * % – + = D. % / – + =

Answer and Explanation

Answer: / * % – + =

Explanation:
There is no explanation...

Report Errors

Name:

Loading...

VView Answer | RReport | DDiscuss in Forum
03. Which one is shows the hierarchy series of arithmetic operations in C?
A. 1. / * - B. 2. * – /
C. 3. – / * D. 4. / * -

Answer and Explanation

Answer: 4. / * -

Explanation:
There is no explanation...

Report Errors

Name:

Loading...

VView Answer | RReport | DDiscuss in Forum
04. Which one is the correct statement?
A. a>b ? c=30 : c=40; B. a>b ? c=30;
C. max = a>b ? a>c?a:c:b>c?b:c D. return (a>b)?(a:b)

Answer and Explanation

Answer: max = a>b ? a>c?a:c:b>c?b:c

Explanation:
There is no explanation...

Report Errors

Name:

Loading...

VView Answer | RReport | DDiscuss in Forum
05. Which one is not logical operator?
A. & B. &&
C. || D. !

Answer and Explanation

Answer: &

Explanation:
There is no explanation...

Report Errors

Name:

Loading...

VView Answer | RReport | DDiscuss in Forum
06. Which one is not check in switch case statement?
A. Character B. Integer
C. Float D. enum

Answer and Explanation

Answer: Float

Explanation:
There is no explanation...

Report Errors

Name:

Loading...

VView Answer | RReport | DDiscuss in Forum
07. How we combine two statements in one?
01 char *q;
02 q = (char*) malloc(10);
A. char p = *malloc(10); B. char *p = (char) malloc(10);
C. char *p = (char*)malloc(10); D. char *p = (char *)(malloc*)(10);

Answer and Explanation

Answer: char *p = (char*)malloc(10);

Explanation:
There is no explanation...

Report Errors

Name:

Loading...

VView Answer | RReport | DDiscuss in Forum
08. In C, if you pass an array as an argument to a function, what actually gets passed?
A. Value of elements in array B. First element of the array
C. Base address of the array D. Address of the last element of array

Answer and Explanation

Answer: Base address of the array

Explanation:
There is no explanation...

Report Errors

Name:

Loading...

VView Answer | RReport | DDiscuss in Forum
09. What will be the output of printf(“\\n”);
A. \n B. \\n
C. error D. None

Answer and Explanation

Answer: \n

Explanation:
There is no explanation...

Report Errors

Name:

Loading...

VView Answer | RReport | DDiscuss in Forum
10. What is (void*)0?
A. Representation of NULL pointer B. Representation of void pointer
C. Error D. None of above

Answer and Explanation

Answer: Representation of NULL pointer

Explanation:
There is no explanation...

Report Errors

Name:

Loading...

VView Answer | RReport | DDiscuss in Forum



Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved 2012-2015 SoftLucent.